// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * InventoryVariationA
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "inventory_variation", autoResultMap = true)
@Schema(title = "库存变动表")
public class InventoryVariationA implements Serializable {

  /**
   * 所属库存明细
   */
  @TableField(value = "`parent_inventory_details`")
  @JoinField(InventoryDetails.class)
  @Schema(title = "所属库存明细")
  private Long parentInventoryDetails;

  /**
   * 操作时间
   */
  @TableField(value = "`operate_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "操作时间")
  private java.util.Date operateTime;

  /**
   * 变动类型
   */
  @TableField(value = "`change_type`")
  @Schema(title = "变动类型")
  private String changeType;

  /**
   * 变动目标类型
   */
  @TableField(value = "`to_type`")
  @Schema(title = "变动目标类型")
  private String toType;

  /**
   * 变动源类型
   */
  @TableField(value = "`from_type`")
  @Schema(title = "变动源类型")
  private String fromType;

  /**
   * 批号
   */
  @TableField(value = "`batch_no`")
  @JoinField(Product.class)
  @Schema(title = "批号")
  private Long batchNo;

  /**
   * 关联单据号
   */
  @TableField(value = "`form_num`")
  @Schema(title = "关联单据号")
  private String formNum;

  /**
   * 库存数量
   */
  @TableField(value = "`stock_qty`")
  @Schema(title = "库存数量")
  private Integer stockQty;

  /**
   * 残次数量
   */
  @TableField(value = "`defect_qty`")
  @Schema(title = "残次数量")
  private Integer defectQty;

  /**
   * 待检待上架量
   */
  @TableField(value = "`inspected`")
  @Schema(title = "待检待上架量")
  private Integer inspected;

  /**
   * 可用锁定量
   */
  @TableField(value = "`locks_available_amount`")
  @Schema(title = "可用锁定量")
  private Integer locksAvailableAmount;

  /**
   * 可用锁定量
   */
  @TableField(value = "`defective_lock_amount`")
  @Schema(title = "可用锁定量")
  private Integer defectiveLockAmount;

  /**
   * 可用在途量
   */
  @TableField(value = "`available_capacity_in_transit`")
  @Schema(title = "可用在途量")
  private Integer availableCapacityInTransit;

  /**
   * 次品在途量
   */
  @TableField(value = "`goods_in_transit`")
  @Schema(title = "次品在途量")
  private Integer goodsInTransit;

  /**
   * 可用结存量
   */
  @TableField(value = "`available_inventory`")
  @Schema(title = "可用结存量")
  private Integer availableInventory;

  /**
   * 次品结存量
   */
  @TableField(value = "`inventory_of_defective_goods`")
  @Schema(title = "次品结存量")
  private Integer inventoryOfDefectiveGoods;

  /**
   * 待检待上架结存量
   */
  @TableField(value = "`checked_and_settled`")
  @Schema(title = "待检待上架结存量")
  private Integer checkedAndSettled;

  /**
   * 可用锁定结存量
   */
  @TableField(value = "`number_of_available_lock`")
  @Schema(title = "可用锁定结存量")
  private Integer numberOfAvailableLock;

  /**
   * 次品锁定结存量
   */
  @TableField(value = "`lock_stock_goods`")
  @Schema(title = "次品锁定结存量")
  private Integer lockStockGoods;

  /**
   * 可用在途结存量
   */
  @TableField(value = "`available_transit_inventory`")
  @Schema(title = "可用在途结存量")
  private Integer availableTransitInventory;

  /**
   * 次品在途结存量
   */
  @TableField(value = "`defective_goods_in_transit`")
  @Schema(title = "次品在途结存量")
  private Integer defectiveGoodsInTransit;

  /**
   * 采购单价
   */
  @TableField(value = "`purchase_price`")
  @Schema(title = "采购单价")
  private java.math.BigDecimal purchasePrice;

  /**
   * 单位费用
   */
  @TableField(value = "`unit_costs`")
  @Schema(title = "单位费用")
  private java.math.BigDecimal unitCosts;

  /**
   * 单位头程
   */
  @TableField(value = "`unit_head_stroke`")
  @Schema(title = "单位头程")
  private java.math.BigDecimal unitHeadStroke;

  /**
   * 单位库存成本
   */
  @TableField(value = "`unit_inventory_cost`")
  @Schema(title = "单位库存成本")
  private java.math.BigDecimal unitInventoryCost;

  /**
   * 货值
   */
  @TableField(value = "`goods_value`")
  @Schema(title = "货值")
  private java.math.BigDecimal goodsValue;

  /**
   * 费用
   */
  @TableField(value = "`expenses`")
  @Schema(title = "费用")
  private java.math.BigDecimal expenses;

  /**
   * 头程
   */
  @TableField(value = "`head_stroke`")
  @Schema(title = "头程")
  private java.math.BigDecimal headStroke;

  /**
   * 库存成本
   */
  @TableField(value = "`inventory_cost`")
  @Schema(title = "库存成本")
  private java.math.BigDecimal inventoryCost;

  /**
   * 操作人
   */
  @TableField(value = "`operator`")
  @JoinField(SysUser.class)
  @Schema(title = "操作人")
  private Long operator;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 操作业务名称
   */
  @TableField(value = "`operate`")
  @Schema(title = "操作业务名称")
  private String operate;

  /**
   * 业务时间
   */
  @TableField(value = "`business_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "业务时间")
  private java.util.Date businessTime;

  /**
   * 变动残次库存
   */
  @TableField(value = "`change_defect_qty`")
  @Schema(title = "变动残次库存")
  private java.math.BigDecimal changeDefectQty;

  /**
   * 变动陈列库存
   */
  @TableField(value = "`change_display_qty`")
  @Schema(title = "变动陈列库存")
  private java.math.BigDecimal changeDisplayQty;

  /**
   * 变动锁库库存
   */
  @TableField(value = "`change_lock_qty`")
  @Schema(title = "变动锁库库存")
  private java.math.BigDecimal changeLockQty;

  /**
   * 变动库存
   */
  @TableField(value = "`change_stock_qty`")
  @Schema(title = "变动库存")
  private java.math.BigDecimal changeStockQty;

  /**
   * 在途数量
   */
  @TableField(value = "`way_qty`")
  @Schema(title = "在途数量")
  private java.math.BigDecimal wayQty;

  /**
   * 陈列数量
   */
  @TableField(value = "`display_qty`")
  @Schema(title = "陈列数量")
  private java.math.BigDecimal displayQty;

  /**
   * 锁库数量
   */
  @TableField(value = "`lock_qty`")
  @Schema(title = "锁库数量")
  private java.math.BigDecimal lockQty;

  /**
   * 辅助数量
   */
  @TableField(value = "`aux_qty`")
  @Schema(title = "辅助数量")
  private java.math.BigDecimal auxQty;

  /**
   * 库存金额
   */
  @TableField(value = "`stock_amount`")
  @Schema(title = "库存金额")
  private java.math.BigDecimal stockAmount;

  /**
   * 关联唯一操作键
   */
  @TableField(value = "`operate_key`")
  @Schema(title = "关联唯一操作键")
  private String operateKey;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 关联制单人
   */
  @TableField(value = "`form_operator`")
  @Schema(title = "关联制单人")
  private String formOperator;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 物料内码
   */
  @TableField(value = "`item_id`")
  @Schema(title = "物料内码")
  private Long itemId;

  /**
   * 项目内码
   */
  @TableField(value = "`project_id`")
  @Schema(title = "项目内码")
  private Long projectId;

  /**
   * 仓库内码
   */
  @TableField(value = "`stock_id`")
  @Schema(title = "仓库内码")
  private Long stockId;
}
